﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;

namespace exsportance.Silverlight.Validate
{
    /// <summary>
    /// Interface for all validators
    /// </summary>
    public interface IValidator
    {
        #region properties
        /// <summary>
        /// Validation messages
        /// </summary>
        List<string> Messages { get; }
        #endregion

        #region methods
        /// <summary>
        /// Main method to check validation, with messages
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        bool Validate(object value, bool allowMessages);
        #endregion
    }
}
